package com.kotiln.lgc.sunnyweather.logic.network

import com.kotiln.lgc.sunnyweather.MyApplication
import com.kotiln.lgc.sunnyweather.logic.model.DailyResponse
import com.kotiln.lgc.sunnyweather.logic.model.RealtimeResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

/**
 *@fileName WeatherService
 *@date2020/12/1  16:54
 *@author WeatherService$
 *@describe TODO
 *@desc
 */
interface WeatherService {

    @GET("v2.5/${MyApplication.TOKEN}/{lng},{lat}/realtime.json")
    fun getRealtimeWeather(@Path("lng") lng:String, @Path("lat") lat:String): Call<RealtimeResponse>

    @GET("v2.5/${MyApplication.TOKEN}/{lng},{lat}/daily.json")
    fun getDailyWeather(@Path("lng") lng:String,@Path("lat") lat:String):Call<DailyResponse>
}